package com.design.reactor.test;

/**
 * reactor模式中内部处理的event类;
 * 可以理解为将输入原始对象根据不同状态包装成一个事件类
 * NIO 中 SelectionKey ，就是 事件
 */
public class Event {
    private InputSource source;
    private EventType type;

    public InputSource getSource() {
        return source;
    }

    public void setSource(InputSource source) {
        this.source = source;
    }

    public EventType getType() {
        return type;
    }

    public void setType(EventType type) {
        this.type = type;
    }
}
